package com.qlylkj.lbk.model.api

import com.qlylkj.lbk.model.bean.CoChainRecordList
import com.qlylkj.lbk.model.bean.Company
import com.qlylkj.lbk.model.bean.CompanyList
import com.qlylkj.lbk.model.bean.base.ResponseEntity
import okhttp3.RequestBody
import retrofit2.http.*

interface CompanyApi {

    @GET("consumers/list")
    suspend fun getCompanyList(@QueryMap options: MutableMap<String, Any>): ResponseEntity<CompanyList>

    @GET("consumers/queryById")
    suspend fun getCompany(@QueryMap options: MutableMap<String, Any>): ResponseEntity<Company>

    @POST("consumers/add")
    suspend fun enterCompanyInfo(@Body requestBody: RequestBody): ResponseEntity<Any>

    @PUT("consumers/edit")
    suspend fun editCompanyInfo(@Body requestBody: RequestBody): ResponseEntity<Any>

    @POST("consumers/frozenBatchChcek")
    suspend fun companyFromCoChain(@Body requestBody: RequestBody): ResponseEntity<Any>

    @GET("ethTransaction/list_by_user_id")
    suspend fun getUserCoChainList(@QueryMap options: MutableMap<String, Any>): ResponseEntity<CoChainRecordList>

}